--[[
    @desc: 
    author:{zcg}
    time:2019-07-18 24:09:18
    {paramdesc}
    @return:
]]
Test = {}
local this = Test
this.name = "zcg"
this.age = nil
function Test:Awake()
    local breakSocketHandle, debugXpCall = require("Debug/LuaDebugjit")("localhost", 7003)
    local timer =
        Timer.New(
        function()
            breakSocketHandle()
        end,
        1,
        -1,
        false
    )
    timer:Start()

    print(this.name)
    this.age = 5
    print(this.age)
    this:Check()
    this.Check1()
    EventDispatcher.Instance:AddEventListener(CommonEventType.OnGUI, this, this.OnGUI)
end

function Test:Check()
    print("Check")
end

function Test:Check1()
    print("Check1")
end

function Test.OnGUI()
    if GUILayout.Button("Reload") then
        ReloadFile("MyDemo.Test2")
    end
end
